<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Insert title here</title>
</head>
<body>
	<h1>基本类型收参</h1>
	<form action="${pageContext.request.contextPath }/params/base.do" method="post">
		USERNAME:<input type="text" name="username" /><br />
		PASSWORD:<input type="password" name="password" /><br />
		AGE:<input type="text" name="age" /><br />
		<input type="submit" value="HANDIN>>>" />
	</form>
	
	<hr />
	
	<h1>对象类型收参</h1>
	<form action="${pageContext.request.contextPath }/params/obj.do" method="post">
		REALNAME:<input type="text" name="realname" /><br />
		USERNAME:<input type="text" name="username" /><br />
		PASSWORD:<input type="password" name="password" /><br />
		<input type="submit" value="HANDIN>>>" />
	</form>
	
	<hr />
	
	<h1>数组类型收参</h1>
	<form action="${pageContext.request.contextPath }/params/array.do" method="post">
		<input type="checkbox" name="strs" value="A" />
		<input type="checkbox" name="strs" value="B" />
		<input type="checkbox" name="strs" value="C" />
		<input type="checkbox" name="strs" value="D" />
		<input type="submit" value="HANDIN>>>" />
	</form>
	
	
	<hr />
	
	<h1>List集合类型收参</h1>
	<form action="${pageContext.request.contextPath }/params/list.do" method="post">
		<input type="checkbox" name="lists" value="A" />
		<input type="checkbox" name="lists" value="B" />
		<input type="checkbox" name="lists" value="C" />
		<input type="checkbox" name="lists" value="D" />
		<input type="submit" value="HANDIN>>>" />
	</form>
	
	<hr />
	
	<h1>Map集合类型收参</h1>
	<form action="${pageContext.request.contextPath }/params/map.do" method="post">
		<input type="checkbox" name="a" value="A" />
		<input type="checkbox" name="b" value="B" />
		<input type="checkbox" name="c" value="C" />
		<input type="checkbox" name="d" value="D" />
		<input type="submit" value="HANDIN>>>" />
	</form>
	
	
	<hr />
	
	<h1>嵌套对象类型收参</h1>
	<form action="${pageContext.request.contextPath }/params/nested.do" method="post">
		REALNAME:<input type="text" name="realname" /><br />
		USERNAME:<input type="text" name="username" /><br />
		PASSWORD:<input type="password" name="password" /><br />
		POSITION:<input type="text" name="address.position" /><br />
		ZIPCODE:<input type="text" name="address.zipCode" /><br />
		
		<input type="submit" value="HANDIN>>>" />
	</form>
	
	
	<hr />
	
	<h1>对象数组类型收参</h1>
	<form action="${pageContext.request.contextPath }/params/objArray.do" method="post">
		REALNAME:<input type="text" name="users[0].realname" /><br />
		USERNAME:<input type="text" name="users[0].username" /><br />
		PASSWORD:<input type="password" name="users[0].password" /><br />

        REALNAME:<input type="text" name="users[1].realname" /><br />
		USERNAME:<input type="text" name="users[1].username" /><br />
		PASSWORD:<input type="password" name="users[1].password" /><br />
		
		<input type="submit" value="HANDIN>>>" />
	</form>
	
	
	<hr />
	
	<h1>日期类型收参</h1>
	<form action="${pageContext.request.contextPath }/params/date.do" method="post">
		BORNDATE:<input type="date" name="date" /><br />
		<input type="submit" value="HANDIN>>>" />
	</form>
	
	
	<hr />
	
	<h1>带有日期的嵌套对象类型收参</h1>
	<form action="${pageContext.request.contextPath }/params/nested.do" method="get" >
		ID:<input type="text" name="id" /><br />
		USERNAME:<input type="text" name="username" /><br />
		PASSWORD:<input type="password" name="password" /><br />
		BORNDATE:<input type="date" name="borndate" /><br />
		POSITION:<input type="text" name="address.position" /><br />
		ZIPCODE:<input type="text" name="address.zipCode" /><br />
		
		<input type="submit" value="HANDIN>>>" />
	</form>
	
</body>
</html>